Don't use -Wunused-value. It's too aggressive with GCC4.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Tue, 17 Oct 2006 14:53:42 +0000 (15:53 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Tue, 17 Oct 2006 14:53:42 +0000 (15:53 +0100)
Signed-off-by: Keir Fraser <keir@xensource.com>
Config.mk

index 74bd8ec80c6f0b6c5e1454b7940df20d382d9ea9..92c829dede82903d956c258608495a3959af99d7 100644 (file)
--- a/Config.mk
+++ b/Config.mk
@@ -52,6 +52,10 @@ test-gcc-flag = $(shell $(1) -v --help 2>&1 | grep -q " $(2) " && echo $(2))
 
 CFLAGS += -Wall -Wstrict-prototypes
 
+# -Wunused-value makes GCC 4.x too aggressive for my taste: ignoring the
+# result of any casted expression causes a warning.
+CFLAGS += -Wno-unused-value
+
 HOSTCFLAGS += $(call test-gcc-flag,$(HOSTCC),-Wdeclaration-after-statement)
 CFLAGS     += $(call test-gcc-flag,$(CC),-Wdeclaration-after-statement)